mohair = require 'mohair'
mysql = require __basename + '/connect/mysql/baby'

module.exports = (userId, clientId, fn) ->
	mohair
		.connect(mysql)
		.table('users')
		.select('lv_id')
		.where(user_id: userId)
		.findOne (err, result) ->
			fn err, groupId: result.lv_id